<template>
  <div class="sidebar">
    <Logo />
    <AddTodo />
    <FooterButtons />
  </div>
</template>

<script setup>
import Logo from './sidebar/Logo.vue'
import AddTodo from './sidebar/AddTodo.vue'
import FooterButtons from './sidebar/FooterButtons.vue'
</script>

<style scoped>
.sidebar {
  width: 300px;
  min-width: 300px;
  background-color: #ffffff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  height: 100%;
}

@media (min-width: 1400px) {
  .sidebar {
    width: 250px;
    min-width: 250px;
  }
}

@media (min-width: 992px) and (max-width: 1399px) {
  .sidebar {
    width: 250px;
    min-width: 250px;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  .sidebar {
    width: 250px;
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 250px;
    min-width: 250px;
    border-radius: 0;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    padding-top: 70px;
  }
}
</style>
